package com.iwunu.gateway.util;

import com.iwunu.iot.common.util.Result;

/**
 * @author kinfeng
 * @date 2019/5/27 3:57 PM
 * @description
 */
@SuppressWarnings("unchecked")
public class ResultUtil {
    public static <T> Result<T> generateResult(Integer code, String msg){
        return new Result(code,msg);
    }
    public static <T> Result<T> generateResult(Integer code, String msg,T data){
        return new Result(code,msg,data);
    }
}
